$animationTime: .2s;
$animationType: linear;
$ratio: 375 / 10;

@function px2rem($px) {
  @return $px / $ratio + rem;
}

@mixin center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@mixin left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@mixin right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

@mixin ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

@mixin columnLeft {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}


@mixin ellipsis2($line) {
  display: -webkit-box;
  -webkit-box-orient: vertical; //指定方向为垂直方向
  -webkit-line-clamp: $line; // 指定行数
  white-space: normal; // 允许自动换行
  overflow: hidden; //超出隐藏
  text-overflow: ellipsis; //超出时 显示...
  word-break: keep-all; // 文字换行的方式 keep-all 完整单词换行
}

.icon {
  color: #666;
  font-size: px2rem(16);
}

.title {
  color: #666;
  font-size: px2rem(16);
  font-weight: bold;
}
